package com.situ.springboot.mapper;

import com.situ.springboot.pojo.entity.Custom;
import com.situ.springboot.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface CustomMapper {

    //    @Select("select * from custom where name=#{name} and password=#{password}")
    Custom login(String name, String password);

    List<Custom> selectall();

    void add(Custom custom);

    void deleteById(Integer id);

    Custom selectById(Integer id);

    void update(Custom custom);

    List<Custom> selectByPage(int offset, Integer pageSize);

    int selectTotalCount();

    void deleteAll(Integer[] ids);

    void updateMoney(Custom newCustom);
}
